package vip.xiaonuo.biz.modular.goods.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(value = "物品借用归还检查DTO", description = "物品借用归还检查DTO")
public class ClientCheckGoodsCheckItemsParam {
    @ApiModelProperty(value = "借用归还记录ID(物品台账ID)", required = true)
    @NotNull
    private String ledgerId;

    @ApiModelProperty(value = "检查类别 0-借用检查 1-归还检查", required = true)
    private Integer checkType;

    @ApiModelProperty(value = "用户借用/归还，检查项确认 0-未确认 1-已确认", required = true)
    private Boolean checkConfirmed;

    private List<CheckItem> checkItems;

    @Data
    public static class CheckItem {
        @ApiModelProperty(value = "物品检查项ID", required = true)
        @NotNull
        private String checkId;

        @ApiModelProperty(value = "检查备注")
        private String checkRemark;

        @ApiModelProperty(value = "检查结果 0-不合格 1-合格", required = true)
        @NotNull
        private Integer checkResult;

        @ApiModelProperty(value = "照片，多个")
        private List<String> images;
    }
}
